package com.travel.admin.service;

import java.util.List;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.travel.admin.api.client.AboutApi;
import com.travel.admin.domain.About;
import com.travel.admin.domain.AboutQuery;
import com.travel.admin.web.response.HandleResp;


@Service
public class AboutServiceImpl implements AboutService {
    @Autowired private AboutApi aboutApi;

    @Override
    public HandleResp<About> findById(Long id) {
        return this.aboutApi.findById(id);
    }

    @Override
    public HandleResp<Integer> modifyById(About about) {
        return this.aboutApi.modifyById(about);
    }

    @Override
    public HandleResp<Integer> count(AboutQuery aboutQuery) {
        return this.aboutApi.count(aboutQuery);
    }

    @Override
    public HandleResp<List<About>> find(AboutQuery aboutQuery) {
        return this.aboutApi.find(aboutQuery);
    }

    @Override
    public HandleResp<About> create(About about) {
        return this.aboutApi.create(about);
    }

    @Override
    public HandleResp<List<About>> findAllByOrderDesc(AboutQuery aboutQuery) {
        return this.aboutApi.findAllByOrderDesc(aboutQuery);
    }

    
}
